package com.black.system.domain.req.system.add;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@ApiModel(value = "SysDeptAddReq", description = "部门添加请求对象")
public class SysDeptAddReq {

    @ApiModelProperty(value = "父部门ID")
    @NotNull(message = "{sysdept.not.parentId}")
    private Long parentId;

    @ApiModelProperty(value = "部门名称")
    @NotBlank(message = "{sysdept.not.deptName}")
    private String deptName;

    @ApiModelProperty(value = "显示顺序")
    @NotNull(message = "{sysdept.not.orderNum}")
    private Integer orderNum;

    @ApiModelProperty(value = "负责人")
    private String leader;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "部门状态:0正常,1停用")
    @NotBlank(message = "{sysdept.not.status}")
    private String status;

}
